package page.app.wallet;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;

import basicTool.WaitTool;
import io.appium.java_client.AppiumDriver;
import page.app.AbstractAppPage;

public class ListToBriefPage extends AbstractAppPage {
	@FindBy(xpath = "//UIATableCell[2]|//android.widget.ListView[1]/android.widget.LinearLayout[3]") //列表中的第一条数据
    private WebElement list;
	@FindBy(xpath = "//UIAButton[@name='详情']|//android.widget.TextView[@text='详情']") //概要页的详情按钮
	private WebElement detailButton;
	
	public ListToBriefPage(AppiumDriver appiumDriver) {
        super(appiumDriver);
        WaitTool.waitFor(appiumDriver, ExpectedConditions.visibilityOf(list), DefaultWaitElementTime4Page);
    }
	public BriefToDetailPage BriefToDetailPage() throws Exception{
		return click(detailButton,BriefToDetailPage.class);
	}


}
